package com.itheima.dbservice;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.itheima.mapper.SoulQuestionchoiceMapper;
import com.itheima.pojo.SoulQuestionchoice;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@DubboService
public class SoulQuestionchoiceServiceApiImpl implements SoulQuestionchoiceServiceApi {
    @Autowired
    private SoulQuestionchoiceMapper soulQuestionchoiceMapper;

    @Override
    public List<SoulQuestionchoice> getQuestionchoiceById(String id) {
        LambdaQueryWrapper<SoulQuestionchoice> lqw = new LambdaQueryWrapper<>();
        lqw.eq(SoulQuestionchoice::getId, id);
        return soulQuestionchoiceMapper.selectList(lqw);
    }
}
